package com.cnewhl.azds.api;

import android.content.Context;


import com.cnewhl.azds.net.NetWork;
import com.cnewhl.azds.net.VolleyInterface;

import java.util.HashMap;


/**
 * 首页接口api
 * Created by mark on 2017/12/7.
 */
public class IndexApi extends NetWork {

    public static final String URL_RELEASE_VERSION = Constants.URL_ROOT_XIAOAO + "/index.php?ctrl=mapiindex"; //版本服务器地址

    public IndexApi(Context ctx, VolleyInterface listener) {
        super(ctx, listener);
    }



    public void update(String lat, String lng){
        HashMap<String, Object> query = new HashMap<String, Object>();
        query.put("user_id", lat);
        query.put("device_id", lng);
        requestPost("http://www.anzhuangmo.com/index.php/mobile/Api/update_deviceID", null, query);
    }

}